#include <sqlserver/SQLServer.h>
#include <server/Server.h>
#include <signals_catch.h>

using namespace std;
#define sqlserver_path "./sqlserver.json"
#define server_path "./server.json"

Server *svr;
SQLServer *sqlServer;

void startServer();

int main() {
    startServer();
    ActivateSignalsListen();
    svr->listen();
}

/**启动服务器*/
void startServer() {
    sqlServer = new SQLServer(SQLServerConfig(sqlserver_path));
    svr = new Server(ServerConfig(server_path));
}